package com.gaff.emp.core.modules.perm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gaff.emp.core.modules.perm.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysUserDao extends BaseMapper<SysUser> {

    int updatePasswordByUserId(@Param("userId") Integer userId, @Param("password") String password);

    int updateRoleNameByRoleId(@Param("roleId") Integer roleId, @Param("roleName") String roleName);

    int updateDeptNameByDeptId(@Param("deptId") Integer deptId, @Param("deptName") String deptName);

}
